package router

import (
	"haodayizhi/controll"
	middleware "haodayizhi/middle_ware"

	"github.com/gin-gonic/gin"
)

func Notice(router *gin.RouterGroup) {
	// 通知列表
	router.GET("/list", middleware.AuthMiddleware(), controll.GetNoticeList)
	// 通知详情
	router.GET("/detail", middleware.AuthMiddleware(), controll.GetNotificationDetail)
	// 标记通知为已读
	router.GET("/mark_notice", middleware.AuthMiddleware(), controll.MarkNotificationAsRead)
	// 发送新通知
	router.POST("/send_notice", middleware.AuthMiddleware(), controll.SendNoticeInfo)
}
